package eu.news.servlet.admin.news;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import eu.news.data.dao.DAOFactory;
import eu.news.data.dao.NewsDAO;
import eu.news.data.pojo.News;

/**
 * 审核新闻
 */
public class AuthNews extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public AuthNews() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * 列出需要审计的条目
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		NewsDAO nDao = DAOFactory.getNewsDAO();
		List<News> uNews = nDao.getUnverified(0, 20);
		request.getRequestDispatcher("");
	}

	/**
	 * 审核通过
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

}
